<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<title>JSF 2.0 Hello World</title>
	<h:outputStylesheet library="bootstrap" name="css/bootstrap.min.css" />
	<h:outputScript library="bootstrap" name="js/bootstrap.js" />
</h:head>

<h:body>
	<h3>JSF 2.0 Hello World Example - hello.xhtml</h3>
	<h:form>
		<h:inputText value="#{helloBean.name}" />
		<h:commandButton action="welcome" value="Forward to welcome.xhtml" />
		<h:commandButton action="welcome?faces-redirect=true" value="Redirect to welcome.xhtml" />
		<h:commandButton action="welcome" actionListener="#{helloBean.attrListener}" value="attribute exmaple">
			<f:attribute name="username" value="jezhang" />
		</h:commandButton>		
		<h:commandButton value="SetPropertyActionListener Example" action="welcome" >
			<f:setPropertyActionListener target="#{helloBean.name}" value="name setup by SetPropertyActionListener Example" />
		</h:commandButton>
	</h:form>
	
	<h3>JSF 2.0 And Resource Bundles Example</h3>
	<h:outputText value="#{msg.message}" />
</h:body>
</html>